package org.comple.erp.pojo.sales;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 *
 * @TableName salesOrder
 */
public class SalesOrder implements Serializable {
    /**
     *
     */
    private String id;

    /**
     *
     */
    private String code;

    /**
     * 单据日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    /**
     *
     */
    private Integer voucher_id;

    /**
     * 0（已保存）, 1(待审核)，2（已审核）3（已驳回）
     */
    private Integer auditStatus;

    /**
     *
     */
    private String workNumber;

    /**
     *
     */
    private String remarks;

    /**
     * 交货日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date productDate;

    /**
     * 1.(快递物流)，2（自配），3（其他）
     */
    private Integer delivery;

    /**
     * 1.（现结），2（货到付款），3（分期付款），4（先款后付）
     */
    private Integer payment;

    /**
     *
     */
    private String customerAddress;

    /**
     *
     */
    private String customerCode;

    /**
     *
     */
    private String companyCode;

    /**
     * 审核人
     */
    private String checkedBy;

    /**
     * 0(存在)，1（删除）
     */
    private Integer isDel;

    /**
     *
     */
    private BigDecimal orderPrice;

    /**
     * 制单人
     */
    private String makeBy;

    /**
     * 优惠金额
     */
    private BigDecimal taxCost;

    /**
     * 优惠后金额
     */
    private BigDecimal taxEndCost;

    /**
     * 销售金额
     */
    private BigDecimal salesAmount;

    /**
     * 税额
     */
    private BigDecimal taxAmount;

    /**
     * 关联销货单
     */
    private String salesSlipCode;

    /**
     * 关联报价单
     */
    private String quotationCode;

    /**
     * 商品数量
     */
    private int itemCount;

    /**
     * 客户类别
     */
    private String customerType;

    /**
     *客户名称
     */
    private String customerName;

    /**
     * 销售员名称
     */
    private String workName;

    /**
     * 客户ID
     */
    private  String customerId;

    private Date checkDate;


    private String quotationId;

    private List<SalesOrder> salesOrderList;

    public String getCustomerId() {
        return customerId;
    }

    public Date getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(Date checkDate) {
        this.checkDate = checkDate;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getQuotationId() {
        return quotationId;
    }

    public void setQuotationId(String quotationId) {
        this.quotationId = quotationId;
    }

    public String getWorkName() {
        return workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    private static final long serialVersionUID = 1L;

    public String getCustomerType() {
        return customerType;
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public List<SalesOrder> getSalesOrderList() {
        return salesOrderList;
    }

    public void setSalesOrderList(List<SalesOrder> salesOrderList) {
        this.salesOrderList = salesOrderList;
    }

    public int getItemCount() {
        return itemCount;
    }

    public void setItemCount(int itemCount) {
        this.itemCount = itemCount;
    }

    private String StaffName;

    public String getStaffName() {
        return StaffName;
    }

    public void setStaffName(String staffName) {
        StaffName = staffName;
    }

    /**
     *
     */
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    /**
     *
     */
    public String getCode() {
        return code;
    }

    /**
     *
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 单据日期
     */
    public Date getDate() {
        return date;
    }

    /**
     * 单据日期
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     *
     */
    public Integer getVoucher_id() {
        return voucher_id;
    }

    /**
     *
     */
    public void setVoucher_id(Integer voucher_id) {
        this.voucher_id = voucher_id;
    }

    /**
     * 0（已保存）, 1(待审核)，2（已审核）3（已驳回）
     */
    public Integer getAuditStatus() {
        return auditStatus;
    }

    /**
     * 0（已保存）, 1(待审核)，2（已审核）3（已驳回）
     */
    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    /**
     *
     */
    public String getWorkNumber() {
        return workNumber;
    }

    /**
     *
     */
    public void setWorkNumber(String workNumber) {
        this.workNumber = workNumber;
    }

    /**
     *
     */
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    /**
     * 交货日期
     */
    public Date getProductDate() {
        return productDate;
    }

    /**
     * 交货日期
     */
    public void setProductDate(Date productDate) {
        this.productDate = productDate;
    }

    /**
     * 1.(快递物流)，2（自配），3（其他）
     */
    public Integer getDelivery() {
        return delivery;
    }

    /**
     * 1.(快递物流)，2（自配），3（其他）
     */
    public void setDelivery(Integer delivery) {
        this.delivery = delivery;
    }

    /**
     * 1.（现结），2（货到付款），3（分期付款），4（先款后付）
     */
    public Integer getPayment() {
        return payment;
    }

    /**
     * 1.（现结），2（货到付款），3（分期付款），4（先款后付）
     */
    public void setPayment(Integer payment) {
        this.payment = payment;
    }

    /**
     *
     */
    public String getCustomerAddress() {
        return customerAddress;
    }

    /**
     *
     */
    public void setCustomerAddress(String customerAddress) {
        this.customerAddress = customerAddress;
    }

    /**
     *
     */
    public String getCustomerCode() {
        return customerCode;
    }

    /**
     *
     */
    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    /**
     *
     */
    public String getCompanyCode() {
        return companyCode;
    }

    /**
     *
     */
    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    /**
     * 审核人
     */
    public String getCheckedBy() {
        return checkedBy;
    }

    /**
     * 审核人
     */
    public void setCheckedBy(String checkedBy) {
        this.checkedBy = checkedBy;
    }

    /**
     * 0(存在)，1（删除）
     */
    public Integer getIsDel() {
        return isDel;
    }

    /**
     * 0(存在)，1（删除）
     */
    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    /**
     *
     */
    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    /**
     *
     */
    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    /**
     * 制单人
     */
    public String getMakeBy() {
        return makeBy;
    }

    /**
     * 制单人
     */
    public void setMakeBy(String makeBy) {
        this.makeBy = makeBy;
    }

    /**
     * 优惠金额
     */
    public BigDecimal getTaxCost() {
        return taxCost;
    }

    /**
     * 优惠金额
     */
    public void setTaxCost(BigDecimal taxCost) {
        this.taxCost = taxCost;
    }

    /**
     * 优惠后金额
     */
    public BigDecimal getTaxEndCost() {
        return taxEndCost;
    }

    /**
     * 优惠后金额
     */
    public void setTaxEndCost(BigDecimal taxEndCost) {
        this.taxEndCost = taxEndCost;
    }

    public BigDecimal getSalesAmount() {
        return salesAmount;
    }

    public void setSalesAmount(BigDecimal salesAmount) {
        this.salesAmount = salesAmount;
    }

    /**
     * 税额
     */
    public BigDecimal getTaxAmount() {
        return taxAmount;
    }

    /**
     * 税额
     */
    public void setTaxAmount(BigDecimal taxAmount) {
        this.taxAmount = taxAmount;
    }

    /**
     * 关联销货单
     */
    public String getSalesSlipCode() {
        return salesSlipCode;
    }

    /**
     * 关联销货单
     */
    public void setSalesSlipCode(String salesSlipCode) {
        this.salesSlipCode = salesSlipCode;
    }

    /**
     * 关联报价单
     */
    public String getQuotationCode() {
        return quotationCode;
    }

    /**
     * 关联报价单
     */
    public void setQuotationCode(String quotationCode) {
        this.quotationCode = quotationCode;
    }
}